<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

    <script type="text/javascript" src="./axios-0.18.0.js"></script>

    <script type="text/javascript">
        
        axios.post("http://localhost:8080/axiosDemo03Servlet","username=柳岩&password=1234")
        .then(resp=>{
            console.log("post请求..........");
        })
        .catch(error=>{
            console.error("post请求错误....................");
        }
        )
        .finally(()=>{
            console.log("我是咋样都会执行的............");
        })

    </script>
    
</body>
</html>